package com.smz.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smz.entity.SCompany;

import java.util.List;

public interface SCompanyService extends IService<SCompany> {


    SCompany findComByCompanyName(String companyName);
    /**
     * 查询所用供应商公司(以及下面的类型和商品)
     */
    List<SCompany> findAllSCompany();
    /**
     * 手动添加公司
     */
    String addCompany(SCompany sCompany);
    /**
     * 模糊查询
     */
    IPage<SCompany> findLike(int current, int size, String companyProvince, String companyCity, String companyArea, String companyName);
    /**
     * 查询所有公司
     */
    IPage<SCompany> findCompany(int current,int size);
}
